
import { get } from "../utils/request"
import { ICaseItem, ICaseListResponse } from "../inteface/home";


// case/list-show
export const getCaseList = async (params: { page: number, pageSize: number }) => {
  try {
    const data = await get<ICaseListResponse>('/api/case/list-show', {
      data: params,
    })
    return data
  } catch (error) {
    console.error('获取案例列表失败:', error)
    throw error
  }
}
